﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ASCII
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ASCIIList ASCIIList = new ASCIIList();
            ASCIIList.Show();
        }

        private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
        {
            this.textBox1.Text = "";
            Encoding ascii = Encoding.ASCII;
            byte[] t = ascii.GetBytes(e.KeyChar.ToString());
            foreach (byte b in t)
            {
                this.textBox2.Text = b.ToString();
            }
        }
    }
}
